<template>
  <div id="app">
    <!-- 添加缓存 -->
    <keep-alive include="productList,home">
      <router-view />
    </keep-alive>
    <!-- 根据当前路由路径判断是否显示 TabBar -->
    <TabBar v-if="$route.meta.showTabBar" />
  </div>
</template>

<script>
import TabBar from '@/components/common/TabBar/index.vue';
export default {
  components: {
    TabBar,
  },
};
</script>

<style></style>
